''''''''''''''''''''''''''''''''''''''''''''''''
' Enventory
'
' vbscript toolset to support administration, Enventory and control of AD Users and PC assets
'
' Copyright (C) ' by ufe@gmx.de
' started  July/August 2008, 
' based on work done within ::
'''''''''''''''''''''''''''''''''''
' Open Audit                  '
' http://open-audit.org	      '
' Software and Hardware Enventory '
' Outputs into MySQL          '
' (c) Mark Unwin 2003         '
'''''''''''''''''''''''''''''''''''
'
' This program is free software; you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation; either version 2 of the License, or
' (at your option) any later version.

' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
' GNU General Public License for more details.

' You should have received a copy of the GNU General Public License along
' with this program; if not, write to the Free Software Foundation, Inc.,
' 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
'

If isAppDriveLocal(lcase(WScript.ScriptFullName)) Then   ' devo
	REM DBProvider="JET"
	REM EnventoryDataDir = "f:\E-nventory\E-nventory"
	REM 'DBProvider="SQLOLEDB"
	REM EnventoryDBSQL = "FRA1AP1-06\SQLEXPRESS"
	REM EnventoryLogDir = "f:\E-nventory\E-nventoryLogs"
	REM EnventoryScriptsDir = "f:\E-nventory\E-nventoryScripts"
	REM EnventoryExportDir = "f:\E-nventory\E-nventoryExports"
	REM EnventoryExportDirLocal = "f:\E-nventory.loc\"
	REM WantExports = true
	REM WantExportsLocal = true
	REM EmailFrom = ComputerNameGet() & "<you@your.mail.domain>"
	REM EmailTo = "you@your.mail.domain"
	REM EmailToNewAppsPerPC = "you@your.mail.domain"
	REM DBWaitForFile = 1
	REM DDEEVV = True
	' wscript.echo WScript.ScriptFullName & "::" & "DDEEVV!"
	REM RUNFrequence = 0 ' 30 every first of the month; 90 every first day of the quarter, all other values days; 1 once a day; 0 means always
	REM EnventoryWaitPerRecord = 0 ' seconds to wait between each record to be procesed - decreases cpu load on client
Else ' prod
	REM DBProvider="JET"
	REM EnventoryDataDir = "\\yourfilesever\\E-nventory\E-nventory\"
	REM 'DBProvider="SQLOLEDB"
	REM EnventoryDBSQL = "FRA1AP1-06\SQLEXPRESS"
	REM EnventoryLogDir = "\\yourfilesever\\E-nventory\E-nventoryLogs\"
	REM EnventoryScriptsDir = "\\yourfilesever\\E-nventory\E-nventoryScripts\"
	REM EnventoryExportDir = "\\yourfilesever\\E-nventory\E-nventoryExports"
	REM EnventoryExportDirLocal = "f:\E-nventory.loc\"
	WantExports = true
	WantExportsLocal = true
	REM EmailFrom = ComputerNameGet() & "<you@your.mail.domain>"
	EmailTo = "you@your.mail.domain"
	REM 'EmailTo = "uwe.fechner@myDom-im.com;christian.lange@myDom-im.com"
	rem EmailToNewAppsPerPC = "uwe.fechner@myDom-im.com;christian.lange@myDom-im.com"
	EmailToNewAppsPerPC = ""
	REM DBWaitForFile = 2000
	REM DDEEVV = False
	RUNFrequence = 15 ' 30 every first of the month; 90 every first day of the quarter, all other values days; 1 once a day; 0 means always
	'EnventoryWaitPerRecord = 5 ' seconds to wait between each record to be procesed - decreases cpu load on client
End If


DBhistoryDays = 90  ' days how long the data  to be kept in the table 0 means for ever
DBhistoryUnique = true  ' keep only one set of data from last rundate per pc (no hisotry) or multiple records (history for DBhistoryDays)
MINDaysMailSent = 5 ' after how many days with data in the table the mails should be sent?
DBTablePerComputer = False ' create a tabple per computer
DBTablePerOU = False ' create a table per computer ou
DBPerApp = false 'create a DB per application
DBPerComputer = False 'create a DB per Computer
DBPerOU  = False 'create a DB per OU

CNTOCheck = CNTOCheck = "OU=DE,DC=myDom,DC=myTLD"  ' which pc's should be considered

EmailCc = ""
EmailServer = "your.mail.domain"
EMailPort = 25
ProxyServer = ""  ' for looking up MS Softwareupdates description

NtpServer = "ntpserver.your.mail.domain"
  
'myDebug WScript.ScriptFullName & " bin in Enventory.SerialNumber.conf"
'myDebug EnventoryLogDir & " " & EnventoryDataDir 
'' SIG '' Begin signature block
'' SIG '' MIID6AYJKoZI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IBATAp
'' SIG '' MBUxEzARBgNVBAMTCmUtbnZlbnRvcnkCEH3bmKd+zyaJ
'' SIG '' QdpeKlKMvbYwDAYIKoZIhvcNAgUFAKBsMBAGCisGAQQB
'' SIG '' gjcCAQwxAjAAMBkGCSqGSIb3DQEJAzEMBgorBgEEAYI3
'' SIG '' AgEEMBwGCisGAQQBgjcCAQsxDjAMBgorBgEEAYI3AgEV
'' SIG '' MB8GCSqGSIb3DQEJBDESBBB2ajM0utzOQUBDMIPr6i11
'' SIG '' MA0GCSqGSIb3DQEBAQUABIGAU6cklQTewZrJiHcL6d7Y
'' SIG '' MeuCVLEe0gKnKfIvfSH+PzEGgyiCWK6WTtRomH1t15+O
'' SIG '' u51QkvqEuJJlm9RQW+STVRykXqsIkGLqXGaaLo9x4v09
'' SIG '' fwxCExx7/feSD2pPplgXuLj3HtNgSsi5xR+xBxh79iG3
'' SIG '' fTqcbLxha32eMaT3HPg=
'' SIG '' End signature block
